PARAM_TEXT_CONTROL

Description

Active element that displays text and allows the user to modify the parameter value with the mouse and the keys. The mouse and keyboard controls are the same as for a knob. See Param Control widgets user experience.

Common Attributes

See the PARAM_TEXT widget and the attributes common to all param control widgets.

Specific Attributes
Name Value Type Default Value Description Comment V.

text_color_disabled

color

'text_color' value

Color of the text when the control is disabled.


1.0

text_color_hover

color

'text_color' value

Color of the text when the mouse is over the control.


1.0

text_color_focus

color

'text_color_hover' value

Color of the text when the control has focus.


1.0

text_color_pushed

color

'text_color_focus' value

Color of the text when the control is pushed (mouse down)


1.0

pixel_range

Positive integer

40

Range of the mouse movements to change the parameter value.

Use a larger value to improve precision of the mouse. Beware that the larger the value, the longer the mouse will have to be moved. This value also influences the number of increments available when using the arrow keys.

1.0

orientation

orientation

'vertical'

Orientation of the mouse control.

If set to 'horizontal', horizontal mouse movements will be taken into account instead of vertical.

1.0

Examples

The graphical properties of this widget are almost the same as the PARAM_TEXT viewing widget except that you can specify different colors depending on the mouse movements, so refer to the PARAM_TEXT section for examples.